﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="rolelist.aspx.cs" Inherits="main_role_role" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" src="/admin/js/SystemPage.js" type="text/jscript"></script>
    <script type="text/javascript" src="/admin/style/jquery/jquery.js"></script>
    <script type="text/javascript" src="/admin/style/jquery/jquery_dialog.js"></script>
    <link type="text/css" rel="stylesheet" href="/admin/style/jquery/jquery_dialog.css" />
    <link href="../style/green/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="LnkBExcel" />
        </Triggers>
        <ContentTemplate>
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        角色管理</div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divInfo">
                <div class="divInfoTop">
                    <div class="listLeft">
                        <ul>
                            <li>
                                <div>
                                    <img src="../style/green/images/search.gif" /></div>
                            </li>
                            <li>条件选择</li>
                        </ul>
                    </div>
                </div>
                <div class="divInfoContext">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="SkyTableLine">
                        <tr>
                            <td width="100" align="center" class="SkyTDTitle">
                                条件选择
                            </td>
                            <td class="SkyTDInfo">
                                <div id="searchBox" class="clearsearch">
                                    <p>
                                        <label for="txtID">
                                            角色编号：</label><asp:TextBox ID="txtID" runat="server"></asp:TextBox></p>
                                    <p>
                                        <label for="txtName">
                                            角色名称：</label><asp:TextBox ID="txtName" runat="server"></asp:TextBox></p>
                                    <p id="searchSubmit">
                                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="确认搜索" CssClass="SkyButtonFocus" /></p>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="divInfo">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <ul>
                            <li>
                                <div>
                                    <img src="../style/green/images/index.gif" /></div>
                            </li>
                            <li>角色列表</li>
                        </ul>
                    </div>
                    <div class="listRight">
                        <ul>
                            <li>
                                <div>
                                    <asp:Literal ID="LSelectAll" runat="server" Text="全择"></asp:Literal>
                                </div>
                            </li>
                            <li class="listRightwidth">
                                <label for="checkSelect">
                                    全选</label>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/22.gif" width="14" height="14"></div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBAdd" runat="server" OnClick="SkyLnkBAMD_Click">新增</asp:LinkButton>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/33.gif" width="14" height="14"></div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBModify" runat="server" Enabled="False" OnClick="SkyLnkBAMD_Click">修改</asp:LinkButton>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/11.gif" width="14" height="14">
                                </div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBDelete" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="False">删除</asp:LinkButton>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/44.gif" width="14" height="14"></div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBExcel" runat="server" OnClick="SkyLnkBAMD_Click">导出</asp:LinkButton>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="divInfoContext">
                    <div style="font: 2px; line-height: 2px;">
                        &nbsp;</div>
                    <asp:GridView ID="gvInfo" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                        CellPadding="0" CellSpacing="1" GridLines="None" Width="100%" CssClass="Ntable"
                        HorizontalAlign="Center" OnRowDataBound="gvInfo_RowDataBound">
                        <RowStyle CssClass="SkyTDLine" HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" CssClass="SkyTDTopLine"></HeaderStyle>
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="序号">
                                <ItemStyle CssClass="itemStyle1" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSelect" runat="server" ToolTip='<%# Bind("ID")%>' Enabled='<%# (Eval("RoleID").ToString()== "1000" || Eval("RoleID").ToString()== "1001" || Eval("RoleID").ToString()== "1002" || Eval("RoleID").ToString()== "1003" || Eval("RoleID").ToString()== "1004"  || Eval("RoleID").ToString()== "1005"  || Eval("RoleID").ToString()== "1006" || Eval("RoleID").ToString()== "1007" || Eval("RoleID").ToString()== "1008") ? false:true%>' />
                                </ItemTemplate>
                                <ItemStyle CssClass="itemStyle2" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="RoleID" HeaderText="角色编号" />
                            <asp:BoundField DataField="RoleName" HeaderText="角色名称" />
                            <asp:BoundField DataField="CreateDate" HeaderText="建立时间" />
                            <asp:BoundField DataField="IP" HeaderText="建立IP" />
                            <asp:ButtonField HeaderText="修改" Text="[修改]" CommandName="modify">
                                <ItemStyle CssClass="itemStyle10" />
                            </asp:ButtonField>
                        </Columns>
                    </asp:GridView>
                    <div class="divInfoRight">
                        <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged"
                            ShowNavigationToolTip="True" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
            <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div id="divLoading">
                <img src="/admin/images/loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>
